﻿using System.Configuration;

namespace EasyLucky.Utils
{
    public class AppConfig
    {
        public static string GetStringValue(string key,string defaultValue)
        {
            var value =defaultValue;
            var keys = ConfigurationManager.AppSettings.Keys;
            foreach(var key1  in keys)
            {
                if (key1.Equals(key))
                {
                    value = ConfigurationManager.AppSettings[key];
                    break;
                }
            }
            return value;
        }
    }
}